<template>
  <div class="box">
    <div class="listTable">
      <div v-for="(item, index) in title" :key="index">
        <div class="num">{{ data ? data[item.value] : null }} <span>人</span></div>
        <div :class="['line', ('color' + index)]" :style="{ width: (data && data[item.value]) ? '100%' : 0 }">&emsp;
        </div>
        <div class="name">{{ item.name }}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'listTable_2',
  data() {
    return {
      maxNum: 0,
    }
  },
  props: {
    data: Object,
    title: Array
  },
  watch: {

  },
  components: {
  },
  created() {

  },
  mounted() {
  },
  methods: {
  }
}
</script>
<style scoped lang="postcss">
.box {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.listTable {
  color: #fff;
  gap: 39px;
  display: flex;
  flex-direction: column;
  height: 85%;
  flex: 1;
}

.listTable>div {
  background-image: url(@/assets/image/boxBg_2@2x.png);
  background-size: 100% 100%;
  padding: 23px 39px;
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  justify-content: space-between;

  & .num {
    font-size: 28px;
    font-weight: 400;
    color: #00DEFF;

    font-family: PangMenZhengDao;

    & span {
      font-size: 14px;
    }
  }

  & .line {
    height: 6px;
    background: #EBEBEB;
    border-radius: 3px;
    width: 0;
    background: #FDCA15;
    transition: width 2s;

    &.color1 {
      background: #44E48FFF;
      width: 100%;
    }
  }

  & .name {
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
  }
}
</style>


<style>
/* .head{
background-image: url('../../assets/head.png');

  background-size: 100% 100%;
     width:100vw;
     height: 78px;
     color:red;
     font-family: Regular;
} */
</style>
